import db from "./db/db";

import severGen from "./generator/egg/server";
import clientGen from "./generator/vue/client";
import javaGen from "./generator/java/java";
import dataFormat from "./dataFormat/dataFormat";

const path = require('path')
import { setTimeout } from "timers";
import nunjucks from './render/view'
async function app() { 
    let tables= await dataFormat(); 
    tables.forEach(item=>{
       item.fields.forEach(ff=>{
          console.log(ff.DATA_TYPE+":"+JSON.stringify(ff.colType)+"==="+ff.COLUMN_COMMENT);            
       })       
    }) 
    //severGen(tables)
     clientGen(tables);
    javaGen(tables);
    db.close();
}

app();


